<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Calculator>
 */
class CalculatorFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'name' => $this->faker->text($maxNbChars = 14),
            'bank_id' => rand(1, 2),
            'initial_loan' => rand(5000, 20000),
            'down_payment' => rand(1000, 2000),
            'term' => rand(3, 12) //in mounth
        ];
    }
}
